#include <QApplication>
#include <QDesktopWidget>

#include "main_window.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QDesktopWidget *d = QApplication::desktop();
    printf("screen size: %dx%d.\n", d->width(), d->height());

    MainWindow mw;
    mw.move((d->width() - mw.width()) / 2, (d->height() - mw.height()) / 2);
    printf("move window to: [%d, %d].\n", mw.x(), mw.y());
    mw.show();
    printf("show.\n");
    return a.exec();
}

